package org.example.testdemo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("permission")
public class Permission {

    @TableId(value = "permissionId",type = IdType.AUTO)
    private String permissionId;//权限id
    @TableField("permissionName")
    private String permissionName;//权限名称
    @TableField("creationTime")
    private LocalDateTime creationTime;//创建时间
    @TableField("changeTime")
    private LocalDateTime changeTime;//修改时间
}
